package mju.cn.sixweek.service.impl;

import mju.cn.sixweek.entity.Role;
import mju.cn.sixweek.mapper.RoleMapper;
//import mju.cn.sixweek.mapper.RoleMapperImpl;
import mju.cn.sixweek.service.UpdateMapperService;
import mju.cn.sixweek.util.AppContext;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @program: java-ee_31
 * @description:
 * @author: HP
 * @time: 2020/10/20 21:19
 */
public class UpdateMapperServiceImpl implements UpdateMapperService {
    @Autowired RoleMapper roleMapper;

    @Override
    public void updateMS(int id1,int id2,double money) {
        AppContext.TAG().updateRole(new Role(id1,money));
        AppContext.TAG().updateRole(new Role(id2,-money));

//        roleMapper.updateRole(new Role(id1,money));
//        roleMapper.updateRole(new Role(id2,money));
    }
}
